// model/recipe_state.dart
import 'package:casdon/modules/recipe/data/model/recipe_category_model.dart';

class CategoryChildState {
  final List<RecipeCategoryModel> tags;
  final List<String> titleTags;
  final int selectedIndex;

  CategoryChildState copyWith({
    List<RecipeCategoryModel>? tags,
    List<String>? titleTags,
    int? selectedIndex,
  }) {
    return CategoryChildState(
      tags: tags ?? this.tags,
      titleTags: titleTags ?? this.titleTags,
      selectedIndex: selectedIndex ?? this.selectedIndex,
    );
  }

  factory CategoryChildState.initial() =>
      CategoryChildState(tags: [], titleTags: [], selectedIndex: 0);

  CategoryChildState({
    required this.tags,
    required this.titleTags,
    required this.selectedIndex,
  });
}
